/*
 * UserDao.hpp
 *
 *  Created on: 2018年3月30日
 *      Author: yaoqiaobing
 */

#ifndef INCLUDE_DAO_USERDAO_HPP_
#define INCLUDE_DAO_USERDAO_HPP_

#include "dao/BaseDao.hpp"
#include "db/query.hpp"

class UserDao : BaseDao {
public:
	/**
	 * 构造函数
	 */
	UserDao(const acl::mysql_conf& mysqlConf, const char* xmlPath);

	/**
	 * 构造函数
	 */
	UserDao(acl::db_mysql* dbHandleMysql, const char* xmlPath);

	/**
	 *
	 */
	int insertUserData(acl::query& query);

	/**
	 *
	 */
	int deleteUserData(acl::query& query);

	/**
	 *
	 */
	int updateUserData(acl::query& query);

	/**
	 *
	 */
	const acl::db_rows* selectUserData(acl::query& query);
};


#endif /* INCLUDE_DAO_USERDAO_HPP_ */
